More robust result size check.
Added test for unicode constraint value.