added test for group and permission extending