for_loop
Some tests and a bugfix
Minor