added test for boolean values inside forLoops