Swapped out close for pop; calling with no args pops off last nest level. Added test cases
Merged