tests: Move namespaces.vala into parser and merge its main methods