added peer manager tests
Merge pull request #5 from yzernik/peermanager_tests

added peer manager tests