Add tests for filterStringToSelect.js