Fixing variable override in test spec