write a test for issue #30