add test (closes #2718)