add unit tests for uploads controller and model