fix storage of filemetadata
little fixes for filematadata import
add dataset tests