Converted test LOOP-DO so that it uses the new macro DEFTEST.