working base resource provider with unit tests work in progress