Fix try and catch + use vm.createContext
Record test results