Testing security measures