Add minitest as a dev dependency and fix Minitest warnings