testing user defined comparison