Fix zlist_dup

zlist_append returns 0 on success so we must test for a return value of -1 to check for failure
Add zlist_dup test