add test for encoding, int32 types