Added tests for search