Issue #3135365 by novchuk.v, mero.S: Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey().