Added getter to internal resource field
Added test suite