enh: correcting Parse() function and add related unit test