[Advanced Connector] Added injecting 'event' object into scripts.
[Single State Button] Fixed tests for click handler callback.