Fixed running tests on command line.