testing the parsing function