Added test2 to create data and search function