add test of sql queries
enhancement test codes