test detect