Test suite for the encoder