Adding test for smack.
Fixing handling of stream-restarts.