unit tests around BattleUtils