added test for 'if' control structure