I had to test the old rule pump switch with a boat hook ...
Just tie a piece of string to the float and the other end to a convenient spot under the nearest access hatch. Pull the string to test the switch.
You aren't testing much if you don't run water into the bilge and see that the switch activates, the motor runs, the impeller turns, and water actually comes out of the thru hull.