Fixed a test case (closes #3918)