Adding unit tests for peer connection model