Changed create and update so it works with rspec