Added rspec test cases