Fixed metadat loading and test