Add integration tests for `scan` command