jasmine testing for search js