EZP-20424 - Fixed fatal error in tests