Make buildNotExistingFileName testable and write unittests
Fix renaming using parenthesis