correct NE equals and add unittest