simplify test-gen