develop unit test for getValidRecipe