Added equality and inequality opertors to Unit

Refs #5977
Clean up memory used for unit test

Refs #5977
Code style improvements for Unit unit test

Refs #5799
Merge remote-tracking branch 'origin/bugfix/5977_unit_equals_operator'