added tests to script file