Bug in unit tests that shows up in the mi unit test run by buildbot