fix bug where test results are not getting deleted.