bugfix - serialize() used a dependency that has been removed; added test to serialize()