transferred response parsing code to AgatteParser
introduced new test for parser