Fix test candidates

This PR fixes test_candidates.py, uncovering a bug we have in the walk candidates iterator, so it will fail until it gets fixed.