Fixed failing UT; added hook to trigger clicks in State gui.