Add tests for uploads controller.