quick fix for metadata copying
added some basic nose test