Added test for top level scope