simple category API implementation & example test