Refactoring, add new tests for recent uploads widget