add test case and fix error message

Fixes #35
Merge pull request #47 from zxqfox/hotfix/vararg-param-error

add test case and fix error message