What causes the pain after an operation or a test?