added nullptr test