Update rspec syntax, and fix unit equality test