strip the test code and add some domain code.