Issue #7: mock all testcases that uses filesystem. - SingleImage is
mocked. Refactoring is still needed.