Tests for parser functionality