ENH: use warning instead
ENH: improve tests