Removes unnecessary tests