Implement unit test on uncovered code. related #5.