Add tests for message fragmentation

To support the issue #43 here is a patch of three unit tests that should help developing the fragmentation feature.