added equals and hashcode to metric descriptor and added asserts in metric manager test