At sometime classpath is too long for being transmitted to the test through the command line.
Intellij is dealing with that problem by enabling the classpath being transmitted through a tempory jar file with the use of the classpath directive. (see http://stackoverflow.com/questions/4853540/what-does-the-dynamic-classpath-flag-do-intellij-project-settings).
The NXRuntimeTestCase#introspectClasspath() should support this mode of loading classes.