Sync parserTests with core.

This matches upstream commit 85d4e39ff096d05386fd2f333cd6acea66ad6f90.

Change-Id: Ia0c77bc339e53cc319a8ffb3e1f91e53aa4ef392