test auto-detect