Add unit tests

Also some changes in classes Level, RangeWeapon, Weapon, WeaponUnit for
making tests.