add test for parser() and serialize()