Rename `check` command to `scan`
Add integration tests for `scan` command