tests: Added lib.sql unit test
lib/sql: Added default for weight parameter
search: Removed trivial weighted_ilikes() function