test for integral attack