Refactoring class TestReponse