Removes unnecessary tests.