implement the batch test mode to run multiple tests at once