[ticket/303] Add tests for get_user_groups()

B3P-303