If so, to what extent were they allowed to exert their influence? Were they able to do this with zero repercussions from their superiors? Side question, were swords actually tested on convicts?
Yes and No. It worked almost like duels in the western sense, only to preserve the dignity of samurai class, but the rules on "Kirisute Gomen" was very strict according to Kujigata Osadame Gaki, the 81 laws of justice, written in 1742.
If a samurai had ever decided to execute a civilian on site,
If there was no witness or you couldn't prove yourself, you must face seppuku, and ended up dishonoring your family name, so Kirisute Gomen had rarely happened. The infamous Namamugi Incident involving British in 1862 is well-documented so maybe you can read about it.
:: Side question, were swords actually tested on convicts?
As a part of execution, convicts on death rows had occasionally faced the cut. You can read that on wiki by typing "Tameshigiri".