COMP: Started rewriting Ocl tests. Fixing minor bugs.

The binary threshold filter throws now an exception if not a 3D images is the input. The test has been adapted.
Merge branch 'bug-12997-RewritingOclTests'