unit test added for testing sorted voice output