repair test cases #351