Fixed RSpec tests