implement list_destroy() and remove not needed functions
introduce tests