Added additional null check on Test
Added additional logging message