Add tests for install by sdiff (ref gh-1).
Add tests for check command (close gh-1).