Added test for null pointer when setting an array