Woman tests mental health detention rights