implements unit testing of the peer