hydiomatic.rules: Added rules about equality

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
tests: Collapse a few test cases together

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>