System test for main.
Remove untestable codes.
Merge pull request #7 from umireon/coverage100

Coverage 100%