fix tests related to empty packet.
Add empty appdata packet before appdata, when using <= TLS10 and using a block cipher, to workaround the security problem related to CBC residue, and the fact that it could be guessed by a malicious user, leading to disclosure of secrets.