remove useless code from Tests