A family doctor in the UK has admitted to pretending a syringe filled with poison was a COVID jab to try and kill his mother's partner, a court has been told.