Testing for linear search