Fix warnings

This PR fixes warnings caused by MiniTest and Ruby itself.