added some tests for issue #12