Add search test in library test