fix minitest spec & add validation