tidied up tests and added coverage for list clearing