add test (closes #2224)