Simplified api to expose providers on root of object
Added basic test cases