Add test for using undefined variable