fixed majority unit test