Add tests to linear_search.js