Discovery process throws exception when CollectionBehaviour is set to PerClass (fixes #67)