listenToOnce and tests