adding rspec test cases