Pass translate test

Pass translate test. Move code from translate test to translate_recipe.