fixed test loop

changed return for continue, it was only doing one test for file.
cleaning up testing code

replace lambdas with new for-all
remove repeated printfs logic
cleaning up testing code II

more efficient and clean.