wrote functional test for clearing list