mirrors: Add a unit test.