Replacing a membrane switch with a relay for automated testing

The transistor is a 2n3704 and it is connected properly. I forgot about the led being in there, please ignore it, it has been removed. The relay works with or without the transistor, can hear it clicking away. Nice to know that I don't need it. I was just following the schematic I found online.

I am trying to replace the membrane switch in the schematic (pic 3 in my original post), which is a totally separate device with its own pic processor, with the relay controlled by the arduino. Please see the hacky MS paint attachment. Unfortunately, I cannot show the entire schematic.

The basic test is to switch the device on and off until it is no longer functioning and test the battery voltage at every 200 cycles. Currently, the batteries are lasting 3,000-7,000 cycles. This will make your finger pretty tired after a few thousand cycles.

It basically works as setup in the attachment below, the issue is it will skip cycles randomly. When I connect just the motor and battery from the device to the relay, it works like a champ. We measured the resistance of the original membrane switch and it is ~65 ohms and the relay ~5.

I don't know what the issue is, nor do I really know how to find it. I included the schematic for the original switch, because there is a resistor and a capacitor and my thought is maybe they are interfering with the relay.

I am pretty new to all of this so thank you for putting up with me.