Both text frames in the test start with an identity transform, so comparing transforms passed even when the copied thread was reversed. The assertion now compares the frames' paths, which differ.
Duplicate Layer gave the text anchors in copied table cells and notes the
document's next ids, which can equal the ids of anchors that cell and note
stories number on their own. Each copy now skips every anchor id already in
the document. The layer commands also import what they use since main moved
them into their own module.