Connection error if payload size is strictly greater than (1 << 14) - 1

It would be desired to add option to make this limit configurable.
Fix scripted_recv_callback in tests.