Added a test pin to the And gate and fixed the pin drawing logic.