SerializationDatabase Unit Tests and fixes