Merge "Remove use of isAttachedToWindow in fragment tests"