move test script to shell