Test case for HSEARCH-1583

Test case for HSEARCH-1583.