Resolve rspec errors.