EZP-21432: Fixed wrong assertions