Closed #5805: remove the test code