Register and load service provider before trying to activate an extension.

Signed-off-by: crynobone <crynobone@gmail.com>
Fixed testcase from 83e4e4e commit

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.0'