Bug in CheckMana fixed. Unit test added.