Improved Check command and Test for check

Now the check command supports a file or a set of files