encoder testing