Some more tests. Added equals(), hashCode() and toString() to DatatypeId