Updated tests to new DiaClassRef, added helper methods, extracted enumerations to separate files to avoid glitchy IDE behaviour.