Merge pull request #2984 from piotr-now/iotssl-2955-move-handshake-to-prescribed-state

Add test for prescribed states of handshake with the custom IO callbacks