Fixed a bug where a PeerInfo was being used in a map instead of a pointer to a PeerInfo. Also added more logging in controller and more tests.