Add tests for undefined arrays