Tests for upload controller