Add tests of backwards metadata iteration.