fixed a bug - didn't work if java main class was a test class - wasn't put on class path