Added unit test for getTargetFilename()