Test that #each stops its cursors when removed