Fix smoke test code to function with strict mode