added test for checking if a user is in a group and finding a group by it's code