functional tests to gscript