unittesting the utils for metadata parser