Added test for issue #885, passes with master