test for detect