Add a new API for adding AtmosphereResource
Fix test
Fix for #901