[2512] Add equality test in .compare unittest
[2512] Add a comment about redundant test
[2512] Fix indent level
[2512] Update check to an assertion

All the constructors currently check that the tag field is not empty.