tests added
Write socket type support.