working test file. If with variable declarations