fix exception caused by testername.