Add test for correct behavior with dtypes
Use wrapping expression suggested by @mhvk