Fix crash for pending tests