Add test suite around parsing function