add a main method for a better command line interface to testmachine instances