FileResource and BundleResourceFactory unit tests