fix rspec test failed