Add autodiscover tests.