test detect presence