fix intermittent test failures.

Introduces a test fix for heka-mozsvc-plugins and the file output tests (fixes an assumption which is only for non-root)