Fixed assertions for Ruby 2.x