new tests, contributed by @casella, see issue #22