add unittest for issue #9