Add unit tests

Also some changes in classes Level, RangeWeapon, Weapon, WeaponUnit for
making tests.
Merge remote-tracking branch 'origin/quiz' into base