Fix variable name typo in test