Fixing potential hang in TcpSocketInputStreamTest

In case the sender socket was closed before the receiver has read all the
data we got a infinite loop.
Furthermore the RandomTest was renamed to its correct test scope.

Change-Id: If8856262c919d7b42d5c481b3870fabc55a7fb9c
Added const iterators to HashSet and HashTable

Change-Id: Ibe12e52e459bc086c3072d5d5262a361f48b8b96
Removing static access on DefaultLogger from non static member function

The member function setLogLevel called the DefaultLogger which was a
static member of the logger class. It works in case the DefaultLogger has
been initialized. In case this the DefaultLogger is not used, this leads
to a null-pointer access.

Change-Id: If00234fd1b7f727aa41257ee49fd55c46239fe2d