Fix test to not use datashape._equal