notify phantomjs of test-completion by throwing a special error