Add test script
Update test code