Add basic test suite and fix bug in list_get()