Fix tests

We need sources to be ordered, so we can't return a map by default, as
maps don't guarantee ordering.