added several test cases for scriptrunner.