BUG/TST: bug in the test apparatus when dtypes are equal in a Series but the values are not equal

noticed in #5429