Gateway parser + tests [skip ci]