Implement getGrantType() and corresponding test cases.