refs #6702. Fix error in test code.