Improve golang parsing and tests