Add tests to check that copying uninitialized and NaN memory is ok.