test that dtypes are preserved.