Refactored pages serialization and activated Assert in serialization test