writing script processor tests
script processor tests merged with new code