'Setup component, test groups services with error.'

@patch('homeassistant.components.microsoft_face.MicrosoftFace.update_store', return_value=mock_coro())
def test_service_status_400(self, mock_update, aioclient_mock):

    aioclient_mock.put(self.endpoint_url.format('persongroups/service_group'), status=400, text="{'error':    {'message':    'Error'}}")
    with assert_setup_component(3, mf.DOMAIN):
        setup_component(self.hass, mf.DOMAIN, self.config)
    mf.create_group(self.hass, 'Service    Group')
    self.hass.block_till_done()
    entity = self.hass.states.get('microsoft_face.service_group')
    assert (entity is None)
    assert (len(aioclient_mock.mock_calls) == 1)
