Test cases for rotating baseUrl

Tests working with present configuration, with empty list and populated
list of baseUrls, and that a resource resolves to the same baseUrl
consistently.