Added tests for auto_detect().