Ziafazal/coursedetail-malformed uri

@mattdrayer  Fix for malformed uri in resources of course detail and fixed a random test failure in groups api.