added unit tests for upload_app() and deploy() return values