Added a “sudo session” to perform system tests

The password will be asked before starting the tests on OS X to create a sudo session.