Fix failing/erroring unit tests

- Issues were due to 1d185faca - which changed how the DbConnectedEntity
  returns the `resource_class` (in all cases where a "virtual" resource
  name is used, the value will now be `null`). Updated tests to reflect
  the change.