Cover cases that can throw exceptions in ResourceManager

Full speed towards 100% coverage :zap: 

Enjoy, cheers!