Fix bi unittests writing outside sandbox

Fixes #420
Merge pull request #426 from opinkerfi/fix-bi-break-nagios-configuration

Fix bi unittests writing outside sandbox