first implementation of the bufferless encoder
added new test class. modified the encoder to pass this test