A police officer who allegedly murdered his ex-partner and the man’s new boyfriend will undergo psychiatric testing before entering pleas to the allegations against him.