added exist? method and rspec tests