Added a nsock test module for loglevels.
Fixed indentation.