First working version of socket storage created and covered with tests