Added a few documentation
Check if resource is registered or don't override resource_name.
Added some tests for this purpose