removes dead code from test