Changed the attack command slightly and added more test cases