PIC test code