A dependency loop exists between juju/testing and the two libraries juju/collections and juju/clock, each of which in turn depend on juju/testing.
Within juju/testing, the use of juju/collections and juju/clock seems to be limited to only the mgo.go file, which imports juju/collections/set and juju/clock.
This was noticed while reviewing dependencies needed to cleanly package LXD for Debian, where each library that LXD depends on must be able to build on its own with a clean set of dependencies. A dependency loop makes this very difficult to accomplish. This may not be a blocking issue as we may have to drop mongodb-specific code because mongodb is no longer in the Debian package archive.