Bugfix and tests stuff.

Fixed copying of shared_buffer_t constructed with copy_tag and big buffer. I messed src and dst arguments of memcpy.
Also some tests of shared_buffer_t are added. It's the first time, when tests showed me a bug in the code.