creating some real tests; fixing up mockSocket