Bug 885224 - Fixes, improvements, additions to mozfile unit tests;r=wlach