fix NullReferenceException in TestStarted