Judge orders mental health test for NZ mosque attacks suspect