Added test on meta-data hierarchy for bug #2276.
Fixed that the property definitions for meta-data are ordered from most top class as in the user classes. Fixes #2276.