test for the bug in #49

closes #49