Grant test

Added unittests for GrantList and GrantDetail.