Bug 875338: unit tests