changed data type in test and fixed Test searchResult function