Fixed incorrect tests in engine_spec.rb