Defined a tmp dir to stop using production path for unit tests and used sudo fake class
Merge pull request #994 from Zentyal/cperello/unittest-fixes

cperello/unittest fixes