unit tests for category