Sketching out a "pop" test
Fixed memory leak(s)