add a test for issue #22