add test (closes #2184)