Fix Minitest error and warnings