Add test for CarbonCopy/Stream Management/Offline Storage interop

When carbon copies, stream management and mod_offline are enabled
in a rare case carbon messages delayed for a particular resource
are delivered to another resource of the same user.