test_upload: Fixing unit test

As per prior commits, I've changed some internals which broke the unit
tests.

This patch does fix it, Jenkins shall be happy with it.