Some test code for the scripting interface