Implementing some basic socket tests.