Added some code for performing multiple tests