Unit test for parsing