Added 2 test cases which prove that #5970 is invalid. Closes #5970.