add tests for both server/cache request and response
refactor - introducing Request/Response record
refactor methods
extract handler
add coveralls