Test extension_loaded

Mocked \extension_loaded function
Fixed bug