-fix test logic

git-svn-id: https://gnunet.org/svn/gnunet@34350 140774ce-b5e7-0310-ab8b-a85725594a96
-add missing return

git-svn-id: https://gnunet.org/svn/gnunet@34351 140774ce-b5e7-0310-ab8b-a85725594a96
-fix use-after-free in error handling

git-svn-id: https://gnunet.org/svn/gnunet@34352 140774ce-b5e7-0310-ab8b-a85725594a96
-fix leak

git-svn-id: https://gnunet.org/svn/gnunet@34353 140774ce-b5e7-0310-ab8b-a85725594a96