Added test of require outside closure.