* For #4399: Create LibState Controller for Search * fix code format * add unit tests for DefaultSearchController * add more test * fix unit tests