Make attack return success or fail. And use it for the unit tests.