fix search method + test
Merge pull request #2 from freakycue/master

fix search method + test