move test formatter to test package