test cases with rspec