Implemented the ForEach function and added test files
Removed the wrong test files and added a test for the ForEach function