Refactor common test code into a convenience library.

Tests and examples (especially the latter) share a lot of identical code that could be refactored into a convenience library for maintainability purposes.

Assignee Loading
Time tracking Loading