QA: Simplify test code