Added encoder test class