tests: factored test helpers out in their own module