migrate unit test