Grant update

Updated JS and PHP unit tests with the new grant schema