Added some tests and fixed a bug in ListMetaData