unit test bug