Remove useless code from testing files.