Removed dead code in tests.