Write tests for Category