Turn auto-tests script into an object for saner manipulation.