A few (non!)trivial exception tests for resource_classes

Change-Id: Ifcf6624a8d50fe25e06d354d277a9998529d5039