Algerian referendum looms as test for president and opposition