Latunski pleads insanity, judge orders competency test