Wafer-Level Testing and Test Planning for Integrated Circuits