App.minifyFile() tests and cleanup

- Also, removed unneeded u.nullOrUndefined check in Training.partitionData()