ERT-695 Fix of the assert in the test