fixed networking socket accept method and fixed tests