test for failure
more strict checks and reseting state
test for failure
Merge pull request #2196 from KonstantinMatskevich:ocl_bugcautching