Detained mogul’s presidential run tests Tunisia’s democracy