Add tests for coverage

Reached 90+% for branch coverage after UMD wrapper is considered.

Need to add in mockery in a new file to check for throws without intl and without intlMessageFormat