ESDEV-1941 Improve, stabilize cache integration tests Improving test, so that it would not fail when mobile theme is added to the shop (cherry picked from commit c79f179)
Adding counting of themes so that unit tests would not fail when mobile theme is added to shop.