[test] Add a test for `run`