Removes unused test code