Added a test for invalid key sizes in LSH tables
Checked key_size in LSH table for validness (#2677)
Merge pull request #397 from ilysenkov:bugfix_2677