Rocori shooter's case rests on legal test for insanity