fix search method + test