test code for encoder and PCB added