try to handle permission error in test discovery