Add tests for parsing