Fix test fail when run from Resharper TestRunner.