test that group_id attribute is present and correct in LMS responses

TNL-24

@gwprice @dan-f (reqd)
it's hard to generically test the ajax responses because they come with different JSON structures depending on the view.

i'm about to push a refactor, though, which accomplishes something similar to your suggestion.