Replace 2 invalid test cases added while fixing #5793 by a valid one