add test for slice assign