Sarkozy tested on Algeria visit