add rspec testing cases