Added test that checks if metadata is converted to dto when saving Entity