Fix test failing to serialize DBRef entries