Fixed up some unit tests

Was running the unit tests and noticed 2 tests that were failing - running on Ruby 1.9.3. Fixed the tests.