Extract out parsing proto file logic from ProtobufGen

you're right, removed the top level declaration and added `@pytest.mark.xfail` to each test