Added tests for test_peer