added end to end testing for search