Fixing rspec warnings