test(*): make sure only if the Notification.permission defined