PLINK-268 minor bug fixes, simple permission grant test case now works