added tests from PR #103