Add test for autodiscovery DC filtering

Apparently I suck at git and screwed up my master branch during the rebase attempt. So this is a re-rebased version of this PR, from a clean branch in my repo.