Merge "Use spy in PermissionMonitorTest."