Replace call to sudo with mocks
Merge pull request #2 from passy/mocking

Replace call to sudo with mocks