implemented test for doBattle