Updated getTests to return tests in random order