cleaned up Distinct and added Tests
Merge pull request #38 from timbokopter/feature/cleanup_Distinct

cleaned up Distinct and added Tests