before new test
update to work for "new", "create" and "update" in Rails 4