QA: Simplify code inside CompactSyntaxTest