Fix command line execution of tests