construct the group object before `where` is mocked

constructing the group object will call the default scope to get the
default values for the instance.  Calling the default scope will call
`where` with parameters that the mock doesn't handle, so we should
construct the object first