some test for ac algorithm