Write tests expecting InputError for 1D/2D arrays with empty-array input