forEach should resolve with undefined