somehow this fact had become fixed in her mind and , as the afternoon wore on , she had come to realise that gerald was a mad doctor and he was using her as a guinea pig in a grotesque medical trial .