fixed test to use the same variable - DRY