Remove dead code in test helper file