add test for resource provider