Remove dead code in test