fix unit test logging