Contains useful code for using when writing unit tests.