tests for lists, fix bug for linsert before