more reliable way to run tests