written a test for issue #36