Fix test with numpy dtypes