These two tests are about attached and detached callbacks. The callbacks are called only if there is a browsing context.