add test script

e2e and unit test working