Small rewrite

Increases coverage, but removes possibilty to log error message
regarding missing extension. Not quite sure if I’ll keep it this way.