Updated SimpleCov settings in spec_helper
Added tests for ThreadLocalVar platform-specific optimizations.