Add tests for all implementation of path.each.