started adding tests for the new functionality to categorise items from an
api.
still need to finish tests.