Add test for user membership gathering