fix for detachAllWithCycle unit test
Merge pull request #3072 from wouterv/fix-for-detachAll-test-failure

fix for detachAllWithCycle unit test