ENH: tests for issue #286