Added tests for provider