Add unit test for group masquerading