added test for animal.__eq__, improved animal.lives's randomness