Fixing error in test case.

I was checking the group based on group.href, instead of
group.href.split('/')[-1]