Fixed Rspec errors.