Add nose test for basic socket functionality