added import method to uid constructor
added remote_access test in Socket constructor