Removed unused code from tests.