Added some basic tests for ScriptFunctionBuilder