tests for parser