adding test with attack