Ensure correct permissions are applied when reading datastore fields. Added test cases for resource view creation.