create test for DbPostRepository->search()