modidy the cat test case and fix read sql bug