write some tests for parser