fix rspec test code