LPS-38284 Checks if event or domEvent are available
LPS-38168 Fix "test-sample-sql", fix wrong method name.