Extract som common code in parser tests
Parse symbol