fix bug in case of exception while loading the test classes