Refactor test discovery to use AppDomainWrapper