added test suites for Socket() and generateID(), also improved generate id unique generation algorithm.