Uploads Controller tests/Refactor for tests