MiniTest integration

This PR is a work in progress as I try MiniTest out in more projects. This PR collects fixes.