added helper method to build sets in test
removed trailing spaces