A man charged with murdering his wife has been accused of being violent to two former partners in court.