Added tests of Attack checkPreconditions logic