update packet shell file, add shell testing file

1.update packet core code shell script file
2.add test file folder