added test for parser bug, fixed parser bug