Test code for pin change