Implement retrieveCategories() call + tests