Add BC test for #4851
Possible fix for isUnique backward compatibility
Merge pull request #4871 from rchavik/2.5-is-unique-test

2.5 Add isUnique test + possible fix