Fix NPE in RunTests