Codestyle fixes.

And some other fixes.
Added a test for "check" in Quality.

It just raises an Exception.