added tests for category