split tests code
fix unserialize test