TDD , search function