Fix mocks in DetachedEdgeTest.