move response parsing to the parser class. add server validation test