The Delete Document test for 8.7 Self-Managed intermittently fails in CI with a message "RequestError: Parse Error: Invalid header token".
This is the last test to run in the test suite, so this could be a symptom of the token expiring and not being correctly renewed.
This is with the rest client.