Fix .readonly() not returning the resource path
Add tests for .readlony()