Great test coverage! It also would be great if we ;can test ```visibilitychanged``` behavior, if possible.