Added some tests for Repository entity structure.
Added possibility to extend Repository structure (useful for extensions).
Fixed a merge between store properties and defined properties.