Added a test to make sure the status of a query is updated when it
comes through from the service.