Made tests use command line instead of JUnit.