api: add tests for ReadResponse.