Test with logging changed
Removed cast on null