PRD-1694 fix

Added test according to "steps to reproduce"