[tests] fix serialization test