Stub out testing dependencies
[filter/roles] Add specs
Merge branch 'test-dependencies'
[class_registry] Don't modify passed hashes

ClassRegistry#generate was directly modifying the passed hash; if this
hash was referenced by other structures then later use would fail. This
commit duplicates the given hash before modifying it.
[class_registry] Expand #inspect