Add decode, decode tests