interim refactor of register_tests