Added tests for full version exchange. Fixed hashing when payload size is 0.