fix problem with selecting tests after a test deletion