Fix test path
Fix test, and autotest
Add script/autotest