update test_control_flow.js

updated test_control_flow.js to make more complex cases