Clean up test_write_recipe a bit

Clean up test_write_recipe a bit