fix head.test cannot work issue

According to the API document describes, `head.test` doesn't work.