fix head.test cannot work issue