Changed the insert logic for better readibility
and added unit testing for operator and equation
node classes.