Some equality tests

@alazier @kspangsege 
Alexander, what  do you mean by a "warning"? APIs don't have warnings as far as I know.