added test for bug in #37