Added temporary fix which resets global templates that might be shared across unit tests