Implement unit testing; Abstract titleToFilename