test on beforescriptexecute and afterscriptexecute
add async_test to test that both events have been fired
Merge pull request #782 from deniak/script-before-after-events

test on beforescriptexecute and afterscriptexecute