Add support for MTU and some more tests

Add tests for sending in invalid state, sending messages larger than
session MTU and sequence numbers taking more than 4 bytes.