remove dead code from test