Added tests for metadata
Enhanced support for automatically creating properties