Add regression test for old parser issue #504

Authored by kabuhr on Mon, May 6, 9:40 PM.