Fix error where test inProgress flag was not unset