Added tests for getType() in TestProvider.java