Having those tests would have catch the segfault fixed in NXDRIVE-1720. Let's add them now!
This will need some work to also start the synchronization and quit when finished.
Add a new option to quit the application after the sync is over
Gracefully exit the application on CTRL+C