int randChoice = new java.util.Random().nextInt(choices.length);
File f = parser.pathToFile(choices[randChoice]);
parser = new ExtendedElement(f.toURL().toURI().toString());
}
Test test;
if (parser.child("standardTest") != null)
test = new StandardTest(parser, getSize());
else if (parser.child("timesyncTest") != null)
test = new SyncTest(parser, getSize());
else test = new DragDropTest(parser, getSize());