test how main thread understands the listener was added