libstd: Tests for {peer, socket}_name.