test: unify open bracket position

Put "{" for "if" to the same line of "if (...)".