templateValues were leaking between tests due to scoping