repair unit test