Added encoder testing: