Algerian pair 'plotted to wage holy war'