Fixed "hello" testcase for setglobal

Added loadlibs to get basic lua libraries
Added proper handling of empty errors