Add tests for nil slice change.

This commit adds tests for the nil slice change.