Corrected script for running tests