Fixed bug with API::categories that resulted in duplicate and/or incorrect results with repeated calls due to the 'caching' logic
removed duplicate entries in test
Merge pull request #3 from bencpeters/fix-categories-method

Fix categories method