[BZ-999851] add test reproducing the issue