test modal events