test join with search