Fix ResourceBannerTests failures on Windows

Fixes gh-2096