The problem (coincidence of contexts) was detected when running oracle phpunit tests, so we skipped the tests as part of MDL-72743. Now, with the problem fixed (previous commit), we can bring back that test.