test that group_id attribute is present and correct in LMS responses

TNL-24

@gwprice @dan-f (reqd)
I'd rather not have a variable called response_thread contain something other than a thread. I suggest the following:

```
response_dict = json.loads(response.content)
response_thread = extract_thread(response_dict) if extract_thread else response_dict
```