Added unit test for class responsible for processing incoming json responses from server.
Auto-closing try structure applied in service.