Pass the unit test for search(int)