updated rspec after some research, added a proper update method