* add test and code comment for pull request #157