Added unit tests frontend
Mess!!! :(
new test exchange connection.
try to reduce race-condition;
Impleted unit-test which connects two peers.