simplification of list::null. Moved tests from .h to .cpp