Avoid unused variable.
- Added unit test