Add an inverter and test it