add test case of null parameter, add basic search function.