Added tests for executeScript

Closes #457