Response class and tests