Refactor test_parsers