Add custom synchronization context for tests.