Added unit tests for the new encoder implementations