add test cases to rspec