written test case for search
fixed:a bug related to adding data