fix testing from commandline