When running unit tests on vagrant, the following exception is produced at the end of the test:
PHP Fatal error: Uncaught exception 'DBUnexpectedError' with message 'Foreign domain connections are still in use (commonswiki).'
The backtrace is in https://phabricator.wikimedia.org/P4125
The connection to commons seems to be opened by GlobalUsage extension.