Fixed  some failing tests
Refactored get_labels in order to allow duplicate group membership
Fixed labels.sparql in order to handle duplicate group membership