testing: Simplify test code.