Added failing acceptance test for #1819
Ensuring reset of ThreadStatic is done as an outer behaviour, fixes #1819