Fix retrieve test