Add search method with and without depth and a test for both.