Junit test case added for function search