Parser state constants, more thorough tests.