Add __nonzero__ method. Fix somes tests