Tests for parser