Add and change some tests
Add the 'close' command
Debug issue with list