Fixed testHeaders method.