initial response object implementation, including tests
fixed linting issue