Fixing tests

HashSet needed to be LinkedHashSet to ensure order otherwise tests would
sometimes fail as expected results can change using hashset.
Merge pull request #104 from hazendaz/master

Fixing tests