fixes command line tests.