add tests for category model