Complete Test Search Code