Test creation and destruction of location struct in parser.