added test for pop, fixed bug in list destructor