phil added test for alg1