fixed compiler warning in tests

git-svn-id: https://gnunet.org/svn/gnunet@34794 140774ce-b5e7-0310-ab8b-a85725594a96
_malloc() -> _new()

git-svn-id: https://gnunet.org/svn/gnunet@34795 140774ce-b5e7-0310-ab8b-a85725594a96
removed unnecessary uncommented code

git-svn-id: https://gnunet.org/svn/gnunet@34796 140774ce-b5e7-0310-ab8b-a85725594a96
fixed usage of get_rand_peer()

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