Add tests for install command for some cases (ref gh-1).
Handle the case to install not-yet-existed files.