improved rspec but not working