RF-13650: fix resource optimization tests