Added Rspec tests