Test to further reduce complexity in socket comparison (thanks Filippo)