Wrong variable name for logging in test