Could you cache `anchors.length` in all test cases? Thanks!