Move the test helpers into a module.