add adt and alg test, implement security util