fix misnamed variable in test