edited rspec unit test cases