add test (closes #3380)