use config to get all sites
adjust test
Merge pull request #1081 from mariansollmann/issue-1081

use config to get all sites