tests for validation: isFileUploadOrHasExistingValue

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>