move test to unit test
simplify code for call script methods.