added test cases for rspec