Use while-let to get past a for loop borrow issue (avoids copying in a test)