I think the assertion in that test is not accurate. Given [this](https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java#L689-L690), the location of the TemplateBuilder is set to the most concrete location. If the belongs to a location more concrete than the one specified in the ID, the location is changed.
The test does not take that into account, but given how the TemplateBuilder works, it is possible that the selected image has the same location, or a location "contained" in the specified location. The way to go would be to override that method and replace the assertion by N assertions doing the same, but when asserting the location, check that the location is the same or contained in the given location. Even better, could you do this fix in a PR in the main repo to fix the test in the base class? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/145#issuecomment-115179545
