Move mock object code to new testing module

Otherwise one would either need to have a dependency on Mockito for the
utils package or move the mock objects to the test directory of that
package.