Optimized runTest to take 1 arg