Test that pop is non-destructive