If its not a production environment the unit are probably what you're after. The only problem being that some of them are broken as you've noticed. I've found a couple of tracker issues. I'm not sure if they are the error you're seeing. If in doubt open a tracker issue to get the unit tests fixed
MDL-16139
MDL-20891
Testing and QA
Testing moodle after updates
This discussion has been locked so you can no longer reply to it.