Test class Formula and add `__eq__` and `__ne__` methods