python/tests: check context_id values of responses correctly