fix #16
use assertion for better code coverage
1.0.10