Small trick to avoid core shell test error

The test method failed if an environment variable value contained '\n'
Corrected Temporal tests

Avoids the NoneType error by importing _TemporalProxy and TemporalException lately