fix robot detection (with tests)