Mocking call to shell commands