Cop accused of raping detainee appears in court