add test (see #2735)