using compareTo testhelper for compareTo test