Fixed docs for getNodesToCaptureInDirection and fixed tests