Added a test to force out of memory exception in scriptengine.

The test currently fails and is not active in the test suite.