NXDRIVE-66: Add tests
NXDRIVE-66: Update the readonly flag on securityUpdated event