creating tags and date from document filename, with test