Added test code for a MaskedDataError and allowed 'numpy' output
when 'allow_empty' is True and all masked data is returned.