You probably mean ``($taxonomy_terms as $taxonomy_term)`` -- make sure the tests are indeed working properly, as term creation should have failed.