Added loader template.

Added loader template,
Revert process manager tests
Explicit logging in the deferredtests