adding version 0 (enc/dec), version 3,4,5 (dec) and key tests