Added rspec tests to autosave model