 		damages = null
 
 		userHP = -> query.val 'SELECT health FROM characters WHERE id=1'
-		totalStringth = -> query.val 'SELECT SUM(strength) FROM items'
+		totalStr = -> query.val 'SELECT SUM(strength) FROM items'
 
 		performSomeAttacks = ->
 			damages = {}
 			tx = transaction(conn)
 			for i in [0..20]
 				prevHP = userHP()
-				prevSt = totalStringth()
+				prevSt = totalStr()
 
 				hp = game._hitAndGetHealth tx, 1, power
 				dmg = prevHP - hp
 				damages[dmg] = true
 
 				if dmg is 0
-					test.ok prevSt > totalStringth(), 'should reduce armor strength if damage was blocked'
+					test.ok prevSt > totalStr(), 'should reduce armor strength if damage was blocked'
 			tx.rollback.sync(tx)
 
 

	insert 'battle_participants', battle: 2, character_id: 5, side: 1, index: 1


	tx = transaction conn

	res = game._leaveBattle(tx, 1, 1)
	test.strictEqual res.battleEnded, false, "should return false if wasn't ended"

	test.strictEqual query.val("SELECT autoinvolved_fm FROM characters WHERE id=1"), false,

		{id: 1, index: 4, side: 0}
	], 'should involve all users and monsters of both sides in correct order'

	test.done()


