unit tests for category and recipe