added tests for control structures