see issue #11
issue #11: add tests