Added some tests, fixed bugs and remove unused code
Fixed nasty bug in Expression#duplicate() and Expression.inverse()

This bug prevented a proper simplification of some expressions with multiple operands,
including variants (inverse)
Also added an Enum to work with the TestPojo