added test case for Provider.getType