issue #1015 fix broken test