improve unit test to check for another edge case re:breaking ties