Add regression test for old parser issue #504