Ex-partner hoped heart attack ‘would kill me’ so she would have no mortgage, man tells court