added a test for issue #12.

related to #12.