removed threadstatic attribute causing tests to fail randomly.