Fixes serialize and unserialize tests.