For unknown reasons using the API rather than BAO fixes the test locally for me
Merge pull request #2989 from eileenmcnaughton/tests

For unknown reasons using the API rather than BAO fixes the test locally...