Add tests for MetaStore