Fixed warnings when running the tests with ruby -w.