test deep equality of objects