MAIN-1138: fix unit test code coverage bug