add test (closes #3542)