added test cases to testAttackOfAOnBOccupying