Add new test for the check command.

Not sure how should be tested :(