Add test for contents entry decoding

Signed-off-by: Sharif Olorin <sio@tesser.org>