Added tests for category queries
Raise error if trying to save/update/delete other than category
Added tests for save, update, delete category methods
Revert
Typo
Refactor: reordered code