added tests from issue #23