serial socket handler test