Removes no longer needed lines from tests.