testing basic socket functions